from flask import Blueprint, render_template

# 注册蓝图
web = Blueprint('web', __name__, template_folder='templates')
# 导入模块
from app.blueprint.web import book
from app.blueprint.web import auth
from app.blueprint.web import drift
from app.blueprint.web import gift
from app.blueprint.web import main
from app.blueprint.web import wish
from app.blueprint.web import user


# 重写404页面
@web.app_errorhandler(404)
def not_found(e):
    return render_template('404.html'), 404
